﻿using AutoMapper;
using PioneerBoilerplate.Model.Admin;
using PioneerBoilerplate.Service.Admin.Role.Input;
using PioneerBoilerplate.Service.Admin.Role.Output;

namespace PioneerBoilerplate.Service.Admin.Role
{
    /// <summary>
    /// 映射配置
    /// </summary>
    public class MapConfig : Profile
    {
        public MapConfig()
        {
            CreateMap<RoleAddInput, RoleEntity>();
            CreateMap<RoleUpdateInput, RoleEntity>();
            CreateMap<RoleEntity, RoleGetOutput>(); 
            CreateMap<RoleEntity, RoleListOutput>();
        }
    }
}